﻿import request from '/@/utils/request';
enum Api {
  AddSysAuditFlowTemplate = '/api/sysAuditFlowTemplate/add',
  DeleteSysAuditFlowTemplate = '/api/sysAuditFlowTemplate/delete',
  UpdateSysAuditFlowTemplate = '/api/sysAuditFlowTemplate/update',
  SaveSysAuditFlowTemplate = '/api/sysAuditFlowTemplate/save',
  PageSysAuditFlowTemplate = '/api/sysAuditFlowTemplate/page',
  ExportSysAuditFlowTemplate = 'api/sysAuditFlowTemplate/export',
}

//导出项目审批
export const exportSysAuditFlowTemplateExcel=(params?:any)=>
	request({
		url:Api.ExportSysAuditFlowTemplate,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加项目审批
export const addSysAuditFlowTemplate = (params?: any) =>
	request({
		url: Api.AddSysAuditFlowTemplate,
		method: 'post',
		data: params,
	});

// 删除项目审批
export const deleteSysAuditFlowTemplate = (params?: any) => 
	request({
			url: Api.DeleteSysAuditFlowTemplate,
			method: 'post',
			data: params,
		});

// 编辑项目审批
export const updateSysAuditFlowTemplate = (params?: any) => 
	request({
			url: Api.UpdateSysAuditFlowTemplate,
			method: 'post',
			data: params,
		});

// 保存项目审批
export const saveSysAuditFlowTemplate = (params?: any) => 
	request({
			url: Api.SaveSysAuditFlowTemplate,
			method: 'post',
			data: params,
		});

// 分页查询项目审批
export const pageSysAuditFlowTemplate = (params?: any) => 
	request({
			url: Api.PageSysAuditFlowTemplate,
			method: 'post',
			data: params,
		});


